add_executable(async_queue_test async_queue_test.c)
target_link_libraries(async_queue_test async_queue)

add_executable(async_queue_test2 async_queue_test2.c)
target_link_libraries(async_queue_test2 async_queue)

add_executable(async_queue_test3 async_queue_test3.c)
target_link_libraries(async_queue_test3 async_queue)

add_executable(dentry_test dentry_test.c)
target_link_libraries(dentry_test fsnotify)

add_executable(fsnotify_test fsnotify_test.c)
target_link_libraries(fsnotify_test fsnotify)

if (NOT WIN32) # not port to windows yet

find_package(LibMySQLD)
include_directories(${LibMySQLD_INCLUDE_DIR})
link_directories(${LibMySQLD_LIBRARY_DIR})
add_executable(db_test db_test.c)
target_link_libraries(db_test ${LibMySQLD_LIBRARIES} ${GLIB2_LIBRARIES})

add_executable(usb_media_list usb_media_list.c)
target_link_libraries(usb_media_list usb_media)

add_executable(syncup_db_viewer syncup_db_viewer.c)
target_link_libraries(syncup_db_viewer ${LibMySQLD_LIBRARIES} ${GLIB2_LIBRARIES})
endif()